home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 305 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: fido.asd.sgi.com!austern
  2. From: solution@gate.net (Ken Walter)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: #ifdef XXXX
  5. Date: 06 Feb 1996 14:01:06 PST
  6. Organization: Solution Technology
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4f8edi$1jja@news.gate.net>
  9. References: <3112531A.3410@ElSegundoCA.ATTGIS.COM>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: 6 Feb 1996 20:41:22 GMT
  12. X-Newsreader: NeoLogic News for OS/2 [version: 4.2]
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMRfPr0y4NqrwXLNJAQH0+AH+MPk5INH1djyuhAKPmX+w4sgNB1lKipqT
  15.     HQDB5i0N48KhhmPloJsm/1UB8WaYJv7S+3V7QhMIZ/n7+zOcChClzQ==
  16.     =5aYm
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. In message <DMBrxn.GAB@falcon.daytonoh.attgis.com> - Dick Menninger <Dick.Menni
  20. nger@daytonoh.attgis.com> writes:
  21. :>
  22. [...]
  23. :>>name techniques are needed to do other semantics.  But an
  24. :>include file can be a form of template for source construction
  25. :>that could be included many times on purpose.  That is what
  26. :>you are proposing to eliminate.  
  27. [...]
  28.  
  29. I don't see it eliminating old operation just adding a feature which is used 
  30. frequently and is time consuming.
  31. The author of an included file knows if including beyond a point produces 
  32. anything that is redundant and can tell the compiler to stop looking at it.
  33.  
  34. I would even go farther and propose something like:
  35.  
  36. #invariant
  37.  
  38. which would tell the compiler to stop scanning this file if it already had 
  39. scanned it before.  This is not as efficient as not including it at all, but 
  40. then the programmer doesn't need to know if the results are different each 
  41. time.
  42.  
  43. Ken Walter
  44.  
  45. * All the above is hearsay and the opinion of nobody in particular
  46. ---
  47. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  48.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  49.   in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  50.